package com.qianfeng.dbsm.service;

import com.qianfeng.dbsm.entity.TbOrderCommission;
import com.qianfeng.dbsm.vo.CommissionQueryParamVo;
import com.qianfeng.dbsm.vo.OrderVo;

import java.util.List;

/**
 * (TbOrderCommission)表服务接口
 *
 * @author makejava
 * @since 2022-11-16 09:29:51
 */
public interface TbOrderCommissionService {

    /**
     * 通过订单编号查看
     *
     * @param commissionQueryParamVo 主键
     * @return 实例对象
     */
    List<TbOrderCommission> queryCommissionListByParam(CommissionQueryParamVo commissionQueryParamVo);

    /**
     * 根据订单对象新增分润信息数据
     *
     * @param orderVo 订单对象
     * @return 实例对象
     */
    int createCommissionData(OrderVo orderVo);


    /**
     * 分润订单审核
     * @param orderNumber
     * @param auditStatus 审核通过的状态
     * @return
     */
    boolean auditCommission(String orderNumber,Integer auditStatus);

}
